package com.wzq.permission.client.service;



import java.util.List;

import com.wzq.permission.client.model.Pager;
import com.wzq.permission.client.model.admin.OrganizeModel;
import com.wzq.permission.client.model.admin.OrganizeRoleModel;
import com.wzq.permission.client.model.admin.UserOrganizeModel;



public interface OrganizeService{
	
	void add(OrganizeModel organize);

	void update(OrganizeModel organize);

	void updateBySelective(OrganizeModel organize);

	void delete(Long[] organizeIds);

	List<OrganizeModel> queryList(OrganizeModel organize,Pager pager);

	OrganizeModel queryById(Object id);
	//=====================================================================================================
	
	List<OrganizeModel> queryMenuTree();
	
	void addUser(List<UserOrganizeModel> userOrgList);
	
	void deleteUser (Long[] userOrganizeIds);
	
	void deleteOrganize(Long organizeId);
	
	UserOrganizeModel queryUserOrgById(Object id);
	
	List<UserOrganizeModel> queryUserOrgList(UserOrganizeModel userOrganize,Pager pager);
	
	int queryUserOrgByCount(UserOrganizeModel userOrganize); 
	
	List<OrganizeRoleModel> queryRoleTree();
	
	List<String> getRoleIdByOrgId(Object organizeId);
	
	void distributionSave(Long organizeId,List<OrganizeRoleModel> orgRoleList);
	
	/**
     * 判断组织是否存在  
     * @author 陈剑飞    
     * @Title: isExist
     * @param organize 组织model
     * @Return: int 返回值
     */
    int isExist(OrganizeModel organize);
}
